<?php

use \GatewayWorker\Lib\Gateway;

class ClientMgr
{
	public static function getNameByUid($uid){
	    //临时代码：获取玩家用户名
        $index = strpos($uid,"+");
        $name = substr($uid, 0, $index);
        return $name;
	}

	public static function getUid($user, $psw){
        $uid = $user . "+" . $psw;
        return $uid;
    }

    public static function getCurGroupId(){
    	return $_SESSION[SessionTag::group_id];
    }

    public static function getCurUid(){
    	return $_SESSION[SessionTag::uid];
    }
}